//
//  ZYThirdLoginInfo.h
//  SuiTong
//
//  Created by 石志愿 on 2020/9/3.
//  Copyright © 2020 石志愿. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "ZYShareConstans.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZYThirdShareInfo : NSObject

@property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *desc;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong) UIImage *icon;

/// 缩略图(分享纯图片)
@property (nonatomic, strong) UIImage *thumImage;

@end

@interface ZYThirdSharePlatformInfo : NSObject

@property (nonatomic, assign) ZYSharePlatform platform;

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *icon;

- (instancetype)initWithPlatform:(ZYSharePlatform)platform;

@end

@interface ZYThirdLoginInfo : NSObject

/// 平台
@property (nonatomic, assign) ZYThirdLoginPlatform platform;

/// 用户统一标识。
/// 针对一个微信开放平台帐号下的应用，同一用户的unionid是唯一的(可用于不同应用之间进行用户信息互通。)
@property (nonatomic, copy) NSString *unionid;
/// 用户的标识，对当前开发者帐号唯一
@property (nonatomic, copy) NSString *openid;
/// 用户昵称
@property (nonatomic, copy) NSString *nickname;
/// 用户头像
@property (nonatomic, copy) NSString *imageUrl;
/// 用户性别
@property (nonatomic, copy) NSString *gender;
/// 用户个人资料填写的省份
@property (nonatomic, copy) NSString *province;
/// 用户个人资料填写的城市
@property (nonatomic, copy) NSString *city;
/// 国家，如中国为CN
@property (nonatomic, copy) NSString *country;
/// 用户特权信息，json数组
@property (nonatomic, copy) NSString *privilege;

//微信返回的响应码，有时候不需要前端请求用户信息，后台直接根据此code请求用户信息
@property (nonatomic, copy) NSString *respCode;

// Apple授权code
@property (nonatomic, copy) NSString *authorizationCode;
// Apple授权用户JWT凭证
@property (nonatomic, copy) NSString *identityToken;

@end

@interface ZYThirdLoginItem : NSObject

@property (nonatomic, assign) ZYThirdLoginPlatform platform;

@property (nonatomic, copy) NSString *icon;

- (instancetype)initWithPlatform:(ZYThirdLoginPlatform)platform;

@end

NS_ASSUME_NONNULL_END
